Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@commitlint/read

Package Overview
Dependencies
Maintainers
4
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commitlint/read

Read commit messages from a specified range or last edit

  • 18.6.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.6M
decreased by-24.61%
Maintainers
4
Weekly downloads
 
Created

What is @commitlint/read?

@commitlint/read is an npm package that provides functionality to read and parse commit messages. It is typically used in conjunction with commitlint to enforce commit message conventions.

What are @commitlint/read's main functionalities?

Read commit messages from a file

This feature allows you to read commit messages from a specified range of commits. In this example, it reads the commit message from the last commit.

const read = require('@commitlint/read');

read({from: 'HEAD~1', to: 'HEAD'}).then((messages) => {
  console.log(messages);
});

Read commit messages from stdin

This feature allows you to read commit messages from the standard input. This is useful for integrating with other tools that provide commit messages via stdin.

const read = require('@commitlint/read');

process.stdin.on('data', (data) => {
  read({edit: true}).then((messages) => {
    console.log(messages);
  });
});

Other packages similar to @commitlint/read

Keywords

FAQs

Package last updated on 13 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc